package com.zd.common.bean.model;

import java.util.Date;

import com.zd.common.common.annotation.Column;

/**
 * 购票订单实体类
 * 
 * @author lishi
 * @date 2018年11月7日 下午4:40:24
 */
public class TicketOrder extends BaseModel {
	private Integer id;
	private Integer channel = 0; ////购票渠道
	private Integer userId = 0; //用户ID
	private Integer scenicSpotId; //景区ID
	private Integer ticketId;
	private Integer ticketNums; //票张数
	private Integer printNumber = 0; // 已打印的票的张数
	private String receiverName; //取票人姓名
	private String receiverPhone; //取票人手机号码
	private String receiverCarNo; //取票人车牌
	private String receiverIdNumber; //取票人证件号

	private int payType = 1; //支付方式（1-微信支付 2-支付宝  3-现金 4-其它）
	private String orderNo; //用户订单号（用户生成32位唯一随机字符串）
	private String transactionId; //交易流水号（交易平台返回的交易流水号）
	private Date payTime;//订单支付时间
	private String tradeType; //交易类型，交易平台返回 （JSAPI、NATIVE、APP ）
	private String bankType; //支付银行编码
	private int needFee; //应付金额（单位：分 理论上need_fee=total_fee）
	private int totalFee; //订单金额（单位：分）
	private int status = 0; //支付订单状态（0-待支付 1-成功）
	private int refundMoney; //订单金额（单位：分）
	private int remainMoney; //剩余可退款金额

	private Date createTime;
	private Date updateTime;
	
	
	@Column
	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	@Column
	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	@Column
	public Integer getPrintNumber() {
		return printNumber;
	}

	public void setPrintNumber(Integer printNumber) {
		this.printNumber = printNumber;
	}

	@Column
	public Integer getTicketId() {
		return ticketId;
	}

	public void setTicketId(Integer ticketId) {
		this.ticketId = ticketId;
	}

	@Column
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column
	public Integer getScenicSpotId() {
		return scenicSpotId;
	}

	public void setScenicSpotId(Integer scenicSpotId) {
		this.scenicSpotId = scenicSpotId;
	}

	@Column
	public Integer getTicketNums() {
		return ticketNums;
	}

	public void setTicketNums(Integer ticketNums) {
		this.ticketNums = ticketNums;
	}

	@Column
	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	@Column
	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	@Column
	public String getReceiverCarNo() {
		return receiverCarNo;
	}

	public void setReceiverCarNo(String receiverCarNo) {
		this.receiverCarNo = receiverCarNo;
	}

	@Column
	public String getReceiverIdNumber() {
		return receiverIdNumber;
	}

	public void setReceiverIdNumber(String receiverIdNumber) {
		this.receiverIdNumber = receiverIdNumber;
	}

	@Column
	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	@Column
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	@Column
	public String getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	@Column
	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	@Column
	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	@Column
	public int getNeedFee() {
		return needFee;
	}

	public void setNeedFee(int needFee) {
		this.needFee = needFee;
	}

	@Column
	public int getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(int totalFee) {
		this.totalFee = totalFee;
	}

	@Column
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column
	public int getRefundMoney() {
		return refundMoney;
	}

	public void setRefundMoney(int refundMoney) {
		this.refundMoney = refundMoney;
	}

	@Column
	public int getRemainMoney() {
		return remainMoney;
	}

	public void setRemainMoney(int remainMoney) {
		this.remainMoney = remainMoney;
	}

	@Column
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
